
<php>if($is_detail){</php>
<div class="bdsharebuttonbox share_box_{$question.id}" style="position: absolute;left: -48px;top: 39px;width: 85px;background: white;border: 1px solid #E0E0E0;z-index: 500;-webkit-box-shadow: 0 0px 1px #E0E0E0;-moz-box-shadow: 0 0px 1px #E0E0E0;box-shadow: 0px 0px 1px #E0E0E0;display: none;">
    <div class="share_tangle"></div>
    <a href="#" class="share_link bds_tsina" question-id="{$question.id}" data-cmd="tsina" title="分享到微博" style="font-size: 14px;background: none;padding-left: 6px;opacity: 1;margin: 3px 6px 3px 0;float: left;line-height: 16px;height: 16px;width: 76px;text-indent: 0em;">分享到微博</a>
    <a href="#" class="share_link bds_weixin" question-id="{$question.id}" data-cmd="weixin" title="分享到微信"  style="font-size: 14px;background-image: none;padding-left: 6px;opacity: 1;margin: 3px 6px 3px 0;float: left;line-height: 16px;height: 16px;width: 76px;text-indent: 0em;">分享到微信</a>
</div>
<script>window._bd_share_config = {"common": {"bdSnsKey": {}, "bdText": "", "bdMini": "2", "bdMiniList": false, "bdPic": "", "bdStyle": "1", "bdSize": "16"},image : [{
    viewType : 'list',
    viewPos : 'top',
    viewColor : 'black',
    viewSize : '16',
    viewList : ['tsina','weixin']
}], "share": {}};
with (document)0[(getElementsByTagName('head')[0] || body).appendChild(createElement('script')).src = 'http://bdimg.share.baidu.com/static/api/js/share.js?v=89860593.js?cdnversion=' + ~(-new Date() / 36e5)];</script>

<style>
    #bdshare_weixin_qrcode_dialog{
        height: 300px!important;
    }
    .bd_weixin_popup .bd_weixin_popup_foot{
        line-height: 15px;
    }
</style>

<php>}else{</php>
<php>
    $share_data="{
    'text':'问题详情页，".$question['title']."',
    'bdDes':'问题详情页，".$question['title']."',
    'url':'".U('question/index/detail',array('id'=>$question['id']))."'
    }";
</php>
<div id="bdshare" class="bdshare_t bds_tools_32 get-codes-bdshare share_box_{$question.id}" style="position: absolute;left: -48px;top: 39px;width: 85px;background: white;border: 1px solid #E0E0E0;z-index: 500;-webkit-box-shadow: 0 0px 1px #E0E0E0;-moz-box-shadow: 0 0px 1px #E0E0E0;box-shadow: 0px 0px 1px #E0E0E0;display: none;" data="{$share_data}">
    <div class="share_tangle"></div>
    <a href="#" class="bds_tsina share_link" question-id="{$question.id}" data-cmd="tsina" title="分享到微博" style="font-size: 14px;background: none;padding-left: 6px;opacity: 1;margin: 3px 6px 3px 0;float: left;line-height: 16px;height: 16px;width: 76px;text-indent: 0em;">分享到微博</a>
</div>
<script type="text/javascript" id="bdshare_js" data="type=tools&mini=1" ></script>
<script type="text/javascript" id="bdshell_js"></script>
<script type="text/javascript">
    /**
     * 在这里定义bds_config
     */
    var bds_config = {};

    document.getElementById('bdshell_js').src = "http://bdimg.share.baidu.com/static/js/shell_v2.js?cdnversion=" + new Date().getHours();
</script>
<php>}</php>




<dl class="col-xs-12 clearfix" style="padding-bottom: 10px;padding-top: 0;">
    <dt>
        <a class="question_img">
            <img src="{$question.user.avatar128}" class="img-responsive"/>
        </a>
    <div>
        <a ucard="{$question.uid}" href="{$question.user.space_url}" style="font-weight: 500;color:#f28220">{$question.user.nickname}</a>
        <div>
                            <span>
                                <if condition="$question['user']['rank_link'][0]['num']">
                                    <volist name="question['user']['rank_link']" id="val">
                                        <img src="{$val.logo_url}" title="{$val.title}" alt="{$val.title}" style="width: 20px;height: 20px;vertical-align: middle;margin-left: 2px;margin-top: -6px;"/>
                                    </volist>
                                </if>
                            </span>
        </div>
        <div style="color: #BBB">{$question.user.address|default="还未设置地址"}
            {$question.user.doing|default="还未设置职业"}
        </div>
    </div>
    </dt>
    <dd>
        <div style="color: #848484;font-size: 15px;line-height: 22px;"><p>
            {$question.content|parse_at_users}<php>if(!$is_detail){</php>&nbsp;&nbsp;<a href="{:U('question/index/detail',array('id'=>$question['id']))}" style="text-decoration: underline;">详情</a><php>}</php></p></div>
        <div class="triangle_up sanjiao"
             style="margin-left: 20px;border-bottom: 10px solid #f1f1f1;"></div>
        <div style="border: 1px solid #e8e8e8;padding: 10px;margin-bottom: 20px;border-radius: 6px;background: #f1f1f1;padding-bottom: 20px;">
            <div><a href="{$question.original_question.user.space_url}" target="_blank"
                    ucard="{$question.original_question.uid}">@{$question.original_question.user.nickname}</a>
            </div>
            <div class="time" style="margin-right: 10px;top: 55px;">
                发布于{$question.original_question.create_time|friendlyDate}
            </div>
            <a href="{:U('question/index/detail',array('id'=>$question['original_question']['id']))}"
               class="title" style="font-size: 20px;color: #000;">{$question.original_question.title}</a>

            <div class="question_content down_more_{$question['id']}"
                 style="color: #848484;font-size: 15px;line-height: 22px;">
                <php>if($is_detail){</php>
                {$question.original_question.content}
                <php>}else{</php>
                {$question.original_question.content_s}<if condition="$question['original_question']['have_more']">&nbsp;&nbsp;<a
                    data-id="{$question.original_question.id}" down-id="{$question['id']}"
                    class="down_more">展开全部内容 》</a></if>
                <php>}</php>
            </div>
            <div style="margin-top: 10px;float: right;color: #848484">
                <span style="margin-right: 15px;">原问题分享 <span>{$question.original_question.share_num}</span></span>
                <span>原问题转发 <span class="old_question_repost_{$question.original_question.id}">{$question.original_question.repost_num}</span></span>
            </div>
            <div class="clearfix"></div>
        </div>

        <div class="other_link clearfix">
            <span class="one_link"><span style="color: #f36119">分享<span> {$question.share_num}</span></span></span>

                        <span class="one_link"><a class="question_answer_btn change" question-id="{$question.id}">回答 <span
                                id="answer_num_{$question.id}">{$question.answer_num}</span></a></span>
                        <span class="one_link"><a class="question_answer_btn_my change"
                                                  question-id="{$question.id}">我要回答</a></span>
        </div>

    </dd>
    <div class="clearfix"></div>

    <div id="question_answer_box_{$question.id}" style="border: 1px solid #e0e0e0;margin-top: 10px;display: none;margin-left: 5px;margin-right: 5px;">
        <div class="triangle" style="margin-right: 95px;border-bottom: 9px solid #f1f1f1;"></div>
        <include file="Public/_answerbox"/>
        <div id="question_answer_{$question.id}">
            {:W('Answer/answer',array('question_id'=>$question['id']))}
        </div>
    </div>
</dl>
<div class="time" style="top:36px;">{$question.create_time|friendlyDate}</div>